Ext.define('PW.view.user.Edit', {
	extend: 'Ext.window.Window',
	alias: 'widget.editusuario',
	title: 'Editar dados do usuario',
	layout: 'fit',
	autoShow: true,
	
	initComponent: function(){
		this.items = [{
				xtype: 'form',
				items: [
					{
						xtype: 'textfield',
						name: 'nome',
						fieldLabel: 'Nome:'
					},
					{
						xtype: 'textfield',
						name: 'email',
						fieldLabel: 'E-mail:'
					},
					{
						xtype: 'textfield',
						input: 'password',
						name: 'senha',
						fieldLabel: 'Senha:'
					}
				]
		}];
		
        this.buttons = [
            {
                text: 'Salvar',
                action: 'salvar'
            },
            {
                text: 'Cancel',
                scope: this,
                handler: this.close
            }
        ];
        
        this.callParent(arguments);
	}
});